<script type="text/javascript">
	$(document).ready(function(){
		$.validator.messages.required = "";
		$.validator.messages.date = "";
		$("#FormSuaLienKet").validate();
	});
</script>
<?php
	$lienket = new lienketbs();
	$lienket->MaLienKet = $_GET['id'];
	$dslienket = $lienket->GetListByID();
?>
<h3>Sửa liên kết</h3>
<form id = "FormSuaLienKet" action="index.php?do=lienket_sua_xuly" method="post">
	<table class="FormSuaBaiViet">
		<input type="hidden" name="MaLienKet" value="<?php echo $dslienket[0]['MaLienKet']; ?>" />
		
		<tr>
			<td>
				<span class="MyFormLabel">Tên liên kết:</span>
				<input type="text" name="TenLienKet" value="<?php echo $dslienket[0]['TenLienKet']; ?>" class = "required"/>
			</td>
		</tr>
		
		<tr>
			<td>
				<span class="MyFormLabel">Link liên kết:</span>
				<input type="text" name="DiaChiLienKet" value="<?php echo $dslienket[0]['DiaChiLienKet']; ?>" class = "required"/>
			</td>
		</tr>
	</table>
	<input type="submit" value="Cập nhật" /><br/>
	<a href = "lienket">Danh sách</a>
</form>